<div class="form">

<?php $form=$this->beginWidget('CActiveForm',array(
	'action'=>Yii::app()->createUrl('//item/catalog'),
)); ?>

	<?php echo $form->hiddenField($model,'itemId'); ?>

	<div class="button float-right">
		<?php $this->widget('zii.widgets.jui.CJuiButton', array(
			'name'=>'create-reservation-button-'.$data->id,
			'buttonType'=>'submit',
			'caption'=>Yii::t('app','Create Reservation'),
		)); ?>
	</div>

	<div class="quantity float-right">
		<?php echo $form->labelEx($model,'quantity',array('class'=>'inline')); ?>
		<?php echo $form->textField($model,'quantity',array('class'=>'number-field')); ?> /
		<?php echo CHtml::encode($data->getRemainingQuantity()); ?>
		<?php echo $form->error($model,'quantity'); ?>
	</div>

	<div class="clear">&nbsp;</div>

<?php $this->endWidget(); ?>

</div>